import { createRouter, createWebHashHistory } from 'vue-router'
import my from './index.vue'
import aboutUs from './aboutUs.vue'
import feedback from './feedback.vue'
// import userAgreement from './userAgreement.vue'

const routes = [
  {
    path: '/',
    component: my,
    meta: {
      title: '我的',
      tabShow: true,
    },
  },
  {
    path: '/aboutUs',
    component: aboutUs,
    meta: {
      title: '关于我们',
      tabShow: true,
    },
  },
  {
    path: '/feedback',
    component: feedback,
    meta: {
      title: '意见反馈',
      tabShow: true,
    },
  },
  // {
  //   path: '/userAgreement',
  //   component: userAgreement,
  //   meta: {
  //     title: '用户协议',
  //     tabShow: true,
  //   },
  // },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router
